import request from '@/utils/request'


function tree(data) {
  return request({
    url: '/sapi/app/product-type/tree',
    method: 'post',
    data: data
  })
}

function remove(data) {
  return request({
    url: '/sapi/app/product-type/remove',
    method: 'post',
    data: data
  })
}


function save(data) {
  return request({
    url: '/sapi/app/product-type/save',
    method: 'post',
    data: data
  })
}
function swap(data){
  return request({
    url: '/sapi/app/product-type/swap',
    method: 'post',
    data: data
  })
}

export default {
  tree,
  remove,
  save,
  swap
}
